<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/7/19
  Time: 15:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="common.jsp" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>员工签到</title>
    <link rel="stylesheet" type="text/css" href="/css/main.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" href="/css/demo.css" type="text/css" media="screen"/>
    <script src="/js/jquery-1.12.4.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="/js/bootstrap.min.js"></script>
    <script src="/js/script.js"></script>

    <script>
//        $(document).ready(function(){
//            $("#checkout").click(function(){
//                window.location.href="my_info.jsp";
//            });
//        });

        $(document).ready(function(){
            $("#checkin").click(function(obj){
                obj.disabled =true;
                window.location.href="/Saccount/checkin";
            });
        });

        function gotocheckout(obj) {
            obj.disabled =true;
            window.location.href="/Saccount/checkout";
        }
    </script>

</head>
<body>
<!-- 很多页面都使用这个顶部栏，所以拿出来放到一个单独文件中 -->
<jsp:include page="componse/top_bar.jsp" flush="true"/>

<nav class="navbar navbar-default" role="navigation">
    <div class="navbar-header">
        <a class="navbar-brand" href="/student/check">返回</a>
    </div>
    <div>
        <ul class="nav navbar-nav">

            <li><a>员工签到</a></li>
        </ul>
    </div>
</nav>

<hr>
<div id="time"style="color: red;text-align: center;font-size: 20px;font-family: 微软雅黑" >
    <script>
        document.getElementById('time').innerHTML=new Date().toLocaleString();

        setInterval("document.getElementById('time').innerHTML=new Date().toLocaleString();",1000);
    </script>
</div>



<div style="text-align: center;">
    <div class="container" style="width: 400px;margin: 10px auto;text-align: left; ">
        <div class="row">
            <div class="col-sm-3">
            <input type="submit" id="checkin"  value="签到"/>
            </div>
            <div class="col-sm-6">
            </div>
            <div class="col-sm-3">
            <input type="submit"  onclick="gotocheckout(this)"  value="签退"/>
        </div>
    </div>
        </div>
</div>

</body>
</html>